<div class="tabs ui-tabs ui-widget ui-widget-content ui-corner-all">
  <ul class="tab-menu ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
    <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active">
      <a href="#user-details-tab">
        <span><?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.account') ?></span>
      </a>
    </li>
    <li class="ui-state-default ui-corner-top">
      <a href="#user-provider-tab">
        <span><?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.profile') ?></span>
      </a>
    </li>
  </ul>
  <!-- Content tab -->
  <div id="user-details-tab" class="form_inputs ui-tabs-panel ui-widget-content ui-corner-bottom">
    <fieldset>
      <ul>
        <li class="even">
          <label for="first_name">
            <?php echo $this->lang->line('label.user.first_name') ?>
          </label>
          <div class="input">
            <?php echo empty($obj['first_name']) ? '' : $obj['first_name'] ?>
          </div>
        </li>
        <li>
          <label for="last_name"><?php echo $this->lang->line('label.user.last_name') ?></label>
          <div class="input">
            <?php echo empty($obj['last_name']) ? '' : $obj['last_name'] ?>
          </div>
        </li>
        <li>
          <label for="username"><?php echo $this->lang->line('label.user.username') ?> </label>
          <div class="input">
            <?php echo empty($obj['username']) ? '' : $obj['username'] ?>
          </div>
        </li>
        <li class="even">
          <label for="display_name"><?php echo $this->lang->line('label.user.display_name') ?></label>
          <div class="input">
            <?php echo empty($obj['display_name']) ? '' : $obj['display_name'] ?>
          </div>
        </li>
        <li>
          <label for="group_id"><?php echo $this->lang->line('label.user.group') ?></label>
          <div class="input">
            <a href="<?php echo site_url('admin/' . "group/show/" . $obj["group_id"]) ?>">
              <?php echo $this->group_model->to_string($obj["group_id"]) ?></a>
          </div>
        </li>
        <li>
          <label for="ip_address"><?php echo $this->lang->line('label.user.ip_address') ?></label>
          <div class="input"><?php echo $obj["ip_address"] ?>
          </div>
        </li>
        <li>
          <label for="is_active"><?php echo $this->lang->line('label.user.is_active') ?></label>
          <div class="input"><?php echo $obj["is_active"] ? 'YES' : 'NO' ?>
          </div>
        </li>
        <li>
          <label for="active_code"><?php echo $this->lang->line('label.user.active_code') ?></label>
          <div class="input"><?php echo $obj["active_code"] ?>
          </div>
        </li>
        <li>
          <label for="created_on"><?php echo $this->lang->line('label.user.created_on') ?></label>
          <div class="input">
            <?php echo empty($obj["created_on"]) ? '' : date($this->setting_model->item('date_format'), $obj["created_on"]) ?>
          </div>
        </li>
        <li>
          <label for="last_login"><?php echo $this->lang->line('label.user.last_login') ?></label>
          <div class="input">
            <?php echo empty($obj["last_login"]) ? '' : date($this->setting_model->item('date_format'), $obj["last_login"]) ?>
          </div>
        </li>
        <li>
          <label for="salt"><?php echo $this->lang->line('label.user.salt') ?></label>
          <div class="input"><?php echo $obj["salt"] ?>
          </div>
        </li>
        <li>
          <label for="first_name"><?php echo $this->lang->line('label.user.first_name') ?></label>
          <div class="input"><?php echo $obj["first_name"] ?>
          </div>
        </li>
        <li>
          <label for="last_name"><?php echo $this->lang->line('label.user.last_name') ?></label>
          <div class="input"><?php echo $obj["last_name"] ?>
          </div>
        </li>
        <li>
          <label for="display_name"><?php echo $this->lang->line('label.user.display_name') ?></label>
          <div class="input"><?php echo $obj["display_name"] ?>
          </div>
        </li>
      </ul>
    </fieldset>
  </div>
  <div id="user-provider-tab" class="form_inputs ui-tabs-panel ui-widget-content ui-corner-bottom">
    <fieldset>
      <ul>        
        <li>
          <label for="email"><?php echo $this->lang->line('label.provider_user.email') ?></label>
          <div class="input"><?php echo empty($obj["email"]) ? "" : $obj["email"] ?>
          </div>
        </li>
        <li>
          <label for="phone"><?php echo $this->lang->line('label.provider_user.phone') ?></label>
          <div class="input"><?php echo empty($obj["phone"]) ? "" : $obj["phone"] ?>
          </div>
        </li>
        <li>
          <label for="address"><?php echo $this->lang->line('label.provider_user.address') ?></label>
          <div class="input">
            <?php echo empty($obj["address"]) ? "" : $obj["address"] ?>
          </div>
        </li>
        <li>
          <label for="status"><?php echo $this->lang->line('label.provider_user.status') ?></label>
          <div class="input">
            <?php
            $status_array = array(
                PROFILE_STATUS_BLOCK => $this->lang->line('label.profile.status.block'),
                PROFILE_STATUS_ACTIVE => $this->lang->line('label.profile.status.active'),
                PROFILE_STATUS_UNACTICE => $this->lang->line('label.profile.status.unactive'));
            echo @$status_array[$obj['status']];
            ?>
          </div>
        </li>
        <li>
          <label for="country_id"><?php echo $this->lang->line('label.provider_user.country_id') ?></label>
          <div class="input">            
            <a href="<?php echo site_url('admin/' . "country/show/" . $obj["country_id"]) ?>">
              <?php echo $this->country_model->to_string($obj["country_id"]) ?>
            </a>
          </div>
        </li>
        <li>
          <label for="state_id"><?php echo $this->lang->line('label.provider_user.state_id') ?></label>
          <div class="input">
            <a href="<?php echo site_url('admin/' . "state/show/" . $obj["state_id"]) ?>">
              <?php echo $this->state_model->to_string($obj["state_id"]) ?>
            </a>
          </div>
        </li>
        <li>
          <label for="city_id"><?php echo $this->lang->line('label.provider_user.city_id') ?></label>
          <div class="input">
            <a href="<?php echo site_url('admin/' . "city/show/" . $obj["city_id"]) ?>">
              <?php echo $this->city_model->to_string($obj["city_id"]) ?>
            </a>
          </div>
        </li>

        <li>
          <label for="company_name"><?php echo $this->lang->line('label.provider_user.company_name') ?></label>
          <div class="input">
            <?php echo empty($obj["company_name"]) ? "" : $obj["company_name"] ?>
          </div>
        </li>
        <li>
          <label for="home_page"><?php echo $this->lang->line('label.provider_user.home_page') ?></label>
          <div class="input">
            <?php echo empty($obj["home_page"]) ? "" : $obj["home_page"] ?>
          </div>
        </li>
        <li>
          <label for="fax"><?php echo $this->lang->line('label.provider_user.fax') ?></label>
          <div class="input">
            <?php echo empty($obj["fax"]) ? "" : $obj["fax"] ?>
          </div>
        </li>
        <li>
          <label for="avatar">
            <?php echo $this->lang->line('label.provider_user.avatar') ?></label>
          <div class="input">
            <img width="200px" alt="avatar"
                 src="<?php echo site_url('admin/file_upload/get_img_from_path?path=' .
                    $this->router->fetch_class() . '/' . $obj['avatar'])
            ?>" />
          </div>
        </li>
      </ul>
    </fieldset>
  </div>
</div>